import { Label, find } from "cc";
import { Logger } from "../../../sdk/API";
import { GameLogic } from "../../../sdk/ecs/GameLogic";

export class TestLogic extends GameLogic{
    get NAME(): string {return "TestLogic"}

    private lab:Label;
    execute(...params: any) {
        Logger.log("==========TestLogic============")
        this.lab = find("Label",params[0]).getComponent(Label)
        this.lab.string += " sword"

        setTimeout(()=>{
            this.sendMsg("tt",12,"sword")
        },3000)
    }
    
    
}